<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN" style="overflow-x:hidden;">
<head>
<%@include file="/template/basic.jspf"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/system/role/addUserList.js"></script>

<script type="text/javascript">
		function  onLoad(node){
			$("#user_dept_id").remove();
			 inputId = document.createElement("input");
			 inputId.type = "hidden" ;
			 inputId.id = "user_dept_id" ;
			 inputId.name = "sysUserFormMap.dept_id" ;
			 inputId.value = node.id;
		     
		 	$("#dept_name").remove();
		     inputName = document.createElement("input");
		     inputName.type = "hidden" ;
		     inputName.id = "dept_name" ;
		     inputName.value = node.name;
		     
			 $("#UserForm").append(inputId);
		     document.body.appendChild(inputName);
		    	   grid.setOptions({
		    		   jsonUrl:rootPath + '/system/roleInfo/findUserByDeptId.shtml?deptId='+node.id
					});
			  
			}
</script>

</head>

<body >
	
	<div class="wrap">
		    <div class="container-fluid">
		        <div class="row-fluid">
           			<div class="col-sm-3">
           				 <app:tree node="list" id="funtree" nodeAction="onLoad" openNodes="root" hideNodes="${hiddenDeptTree }"/>
	            	</div>
		            <div class="col-sm-9">
	                	<form class="form-inline" role="form" id="searchForm" name="searchForm">
	                		<div class="well"  id="UserForm">
	                			 <div class="form-group">
									<label for="lbDeptName">姓名</label>&nbsp;&nbsp;
									<input type="hidden" id="roleId"  value="${roleId}">
									<input type="text" id="user_account" name="sysUserFormMap.user_name" class="form-control" style="width:100px;" maxlength="20" />&nbsp;&nbsp;											
								</div>	
	                		
			                    <div class="form-group">
									<label for="lbDeptName">账号</label>&nbsp;&nbsp;
									<input type="text" id="user_account" name="sysUserFormMap.user_account" class="form-control" style="width:100px;" maxlength="20" />&nbsp;&nbsp;											
								</div>	
						       
			                    <div class="form-group">
									&nbsp;&nbsp;<a href="javascript:void(0)" class="btn btn-info" id="search">查&nbsp;&nbsp;	&nbsp;&nbsp;询</a>&nbsp;&nbsp;
								</div>
								 <div class="form-group">
									&nbsp;&nbsp;<a href="javascript:void(0)" class="btn btn-success" id="addBtn">保&nbsp;&nbsp;&nbsp;&nbsp;存</a>&nbsp;&nbsp;
								</div>
	                		</div>
	                	</form>	                	
						<div id="paging" class="pagclass"></div>
		            </div>
          		</div>
        	</div>
        </div>	
</body>
</html>